﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
	
<sec:authentication property="principal" var="currentPrincipal" scope="page" />
	
<ul class="nav navbar-nav navbar-right ms-navbar-nav no-last-right-border">
  <li class="dropdown">
    <a href="${ctx.host}/profile" class="dropdown-toggle" id="dropdownMenu2" data-toggle="dropdown">${currentPrincipal.username}<span class="caret"></span></a>
    <ul class="dropdown-menu ms-dropdown-menu" role="menu" aria-labelledby="dropdownMenu2">
      <li><a href="${ctx.host}/j_spring_security_logout">退出系统</a></li>
      <li><a href="${ctx.host}/profile">个人中心</a></li>
    </ul>
  </li>
</ul> 